//
//  YCAssetsManager.h
//  YCSchool
//
//  Created by yanglinxia on 16/5/3.
//  Copyright © 2016年 yanglinxia. All rights reserved.
//  系统相册管理类

#import <Foundation/Foundation.h>
#import <AssetsLibrary/AssetsLibrary.h>

@class YCAssetsManager;
/**
 *  加载相册分组回调
 *
 *  @param manager 管理器对象
 */
typedef void (^AssetsManagerLoadAlbumCompletionBlock)(YCAssetsManager *manager);

@interface YCAssetsManager : NSObject

///所有相册分组
@property (nonatomic,readonly) NSArray *assetsGroups;
///系统相册默认分组
@property (nonatomic, readonly) ALAssetsGroup *defaultAlbumGroup;

/**
 *  单例
 *
 *  @return 单例对象
 */
+ (instancetype)shareManager;

/**
 *  异步加载系统相册分组
 *
 *  @param block 加载完成回调
 */
- (void)loadAllAssetsGroupsCompletionBlock:(AssetsManagerLoadAlbumCompletionBlock)block;


@end
